/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Helper.TTAHelper;

import java.io.Serializable;
import java.util.Calendar;

/**
 *
 * @author Lu Xiaodi
 */
public class Helper_PIPReservation implements Serializable {

    private Calendar time;
    private Long numReservations;

    public Helper_PIPReservation() {
    }

    public Helper_PIPReservation(Calendar time, Long numReservations) {
        this.time = time;
        this.numReservations = numReservations;
    }

    public Long getNumReservations() {
        return numReservations;
    }

    public void setNumReservations(Long numReservations) {
        this.numReservations = numReservations;
    }

    public Calendar getTime() {
        return time;
    }

    public void setTime(Calendar time) {
        this.time = time;
    }

    public String getTimeStr() {
        String[] months = new String[]{"Jan", "Feb", "Mar", "Apr", "May", "Jun",
            "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
        String mon = months[time.get(Calendar.MONTH)];
        String year = String.valueOf(time.get(Calendar.YEAR));
        year = year.substring(2);
        return mon + "," + year;
//        return time.get(Calendar.MONTH)+1 + "/" + time.get(Calendar.YEAR);
    }
}
